﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CqusInfo.DAL.Permissions;

namespace CqusInfo.BLL.Permissions
{
    public class User_RoleBLL:Inteface.IUser_RoleBLL
    {
        private static readonly User_RoleDAL urDal = new User_RoleDAL();
        public Int32 GetCounts(bool isDel)
        {
            return urDal.GetCounts(isDel);
        }

        public Int32 Add(RAL.Permissions.User_RoleModel model)
        {
            return urDal.Add(model);
        }

        public Int32 Update(string urId, RAL.Permissions.User_RoleModel model)
        {
            return urDal.Update(urId, model);
        }

        public Int32 Delete(string urId)
        {
            return urDal.Delete(urId);
        }

        public List<RAL.Permissions.User_RoleModel> Query(string urId)
        {
            return urDal.Query(urId);
        }

        public List<RAL.Permissions.User_RoleModel> Query(Int32 page, Int32 takeItem)
        {
            return urDal.Query(page, takeItem);
        }
    }
}
